package com.realtime;

import java.util.ArrayList;
import java.util.List;

public class ArralistToSringArray {
	public void disp(){
		System.out.println("pourna");
	}

	
	public static void main(String[] args) {

		List<String>  list=new ArrayList<String>();
		
		list.add("hi");
		list.add("this");
		list.add("mallikharjun");
		
		System.out.println("List content .."+list);
		
		String[] str=new String[list.size()];
		
		System.out.println("list to array ..."+list.toArray(str));
		
		System.out.println("now String..."+str);
		
		 for(String temp : str)
			    System.out.print(" "+temp);
	}

}
